
import 'package:study_online/global/global.dart';

Future getTestByPaId(int paId) async {
  return await Global.getInstance().dio.get(
    "/test/ques",
    queryParameters: {
      "paId": paId,
    },
  );
}

Future insertGrade(int paId,String stuId,double acc,double grade) async {
  return await Global.getInstance().dio.post(
    "/test/grade",
    queryParameters: {
      "paId": paId,
      "stuId": stuId,
      "acc": acc,
      "grade": grade,
    },
  );
}